package binary;

public class ComplenentDemo {
    public static void main(String[] args) {
        int n =-45;
        System.out.println(Integer.toBinaryString(n));//11111111111111111111111111010011
        System.out.println(n);


       /* int max =Integer.MAX_VALUE;
        int min =Integer.MIN_VALUE;
        System.out.println(Integer.toBinaryString(max));//011111...零后31个1
        System.out.println(Integer.toBinaryString(min));//100000...1后面31个0
        System.out.println(Integer.toBinaryString(-1));//11111....32个1*/
    }
}
